My Pools
Queries information of the pools created by the specified user.
query Pool($userAddress: String!) {
pool {
my_pools(user_address: $userAddress) {
height
vlp
user {
address
chain_uid
}
pair {
token_1
token_2
}
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Pool($userAddress: String!, $chainUid: String) {\n pool {\n my_pools(user_address: $userAddress, chain_uid: $chainUid) {\n height\n vlp\n user {\n chain_uid\n address\n }\n pair {\n token_1\n token_2\n }\n }\n }\n}","variables":{"chainUid":"stargze","userAddress":"stars14hcxlnwlqtq75ttaxf674vk6mafspg8xj0h7fj"}}'
Arguments
- userAddress (String!): The address to check the pools for.
Return Fields
Field | Type | Description |
---|---|---|
height | Int | The block height when the pool was created. |
vlp | String | The contract address of the VLP of the pool. |
pair | Pair | The pair of tokens in the pool. |
user | User | The user details associated with the pool. |